package com.wzq.demospringbatch.batch.demo.chunk.processor;

import com.wzq.demospringbatch.batch.entity.TestData;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

/**
 * 数据转换Process
 */
@Component
public class DataTransformItemProcessor implements ItemProcessor<TestData, TestData> {
    @Override
    public TestData process(TestData testData) throws Exception {
        testData.setName("你好:" + testData.getName());
        return testData;
    }
}
